package com.chis.childcheck;

import redis.clients.jedis.ShardedJedis;

/**
 * 
 * @Description 
 * @Company zwx
 * @author wlj
 * @version 2019年08月10日
 */
public class TestRedis {
    public static void main(String[] args) {
        ShardedJedis jedis = null;
        try {
            jedis = JedisConnect.getInstance().sparkjedisPool.getResource();
            jedis.select(0);
        } catch (Exception e){
            e.printStackTrace();
        } finally {
            if(jedis != null){
                jedis.close();
            }
        }


        try {
            jedis = JedisConnect.getInstance().sparkjedisPool.getResource();
            jedis.select(0);
        } catch (Exception e){
            e.printStackTrace();
        } finally {
            if(jedis != null){
                jedis.close();
            }
        }

    }
}
